package com.atguigu.gulimall.order.feign;

import com.atguigu.gulimall.order.feign.fallback.CartFeignServiceFallBack;
import com.atguigu.gulimall.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 购物车远程服务
 *
 * @author xiaoping
 * @create 2020/7/3 20:15
 * @since 1.0.0
 */
@FeignClient(value = "gulimall-cart",fallback = CartFeignServiceFallBack.class)
public interface CartFeignService {

    /**
     * 获取当前会员选中的购物项
     */
    @GetMapping("/currentUserCartItems")
    List<OrderItemVo> getCurrentUserCartItems();

}
